home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / trace / tcpdump-2.2.1 / ostype < prev    next >
Encoding:
Text File  |  1990-10-03  |  338 b   |  18 lines

  1. #!/bin/csh -f
  2. # @(#) $Header: ostype,v 1.3 90/10/03 14:23:55 mccanne Exp $ (LBL)
  3. #
  4. # Determine os type.
  5. #
  6. set os=`awk -f ostype.awk /etc/motd`
  7. if ($os == "") exit 1
  8. if ($os == "UNKNOWN") then
  9.     if ( -f /hp-ux ) then
  10.         set os="hpux"
  11.     else if ( -f /etc/uerf ) then
  12.         set os="ultrix"
  13.     endif
  14. endif
  15. echo $os
  16. if ($os == "UNKNOWN") exit 1
  17. exit 0
  18.